﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DarcRogue
{
    public static class FileManager
    {
        public static void Setup()
        {
        }

        public static BinaryReader GetFile(string file)
        {
            if (File.Exists(file))
            {
                FileStream fs = new FileStream(file, FileMode.Open);
                return new BinaryReader(fs);
            }
            return null;
        }
        public static string[] GetFileNames()
        {
            List<string> s = new List<string>();
            string[] hdfiles = Directory.GetFiles(".");
            foreach (string a in hdfiles)
                s.Add(a.Substring(2));
            return s.ToArray();
        }
    }
}
